<template>
  <div class="testfinish">
    <ul class="view-box">
      <router-link tag="li" to="/home" class="head-l">
        关闭
      </router-link>
      <router-link tag="li" to="" class="head-c">
        肺部测试
      </router-link>
      <router-link tag="li" to="" class="head-r">
        分享
      </router-link>
    </ul>
    <div class="test-head">
      <!-- 750*600 -->
      <div>
        <h1>测试结果</h1>
        <p>{{ p_text }}</p>
      </div>
      <span>结果仅供参考</span>
    </div>
    <div class="test-bottom">
      <h1>为你推荐 :</h1>
      <div class="box-card" v-for="(item,index) in imgs" :key="index">
        <div class="card">
          <img :src="item.botton_pic" alt="">
          <span>{{ item.title }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name:"TestFinish",
    data(){
      return{
        p_text:"高度危险！您目前属于高危阶段，需要引起重视，建议在医生指导下定期复查或体检。在体检时建议加做胸部低剂量螺旋CT。做到有效预防，定期筛查。",
        imgs:[
          {
            botton_pic:require("../../../../../../assets/pimages/tuijian1.jpg"),
            title: "黑木耳"
          },
          {
            botton_pic:require("../../../../../../assets/pimages/tuijian2.jpg"),
            title: "清肺汤"
          },
          {
            botton_pic:require("../../../../../../assets/pimages/tuijian2.jpg"),
            title: "清肺汤"
          }
        ]
      }
    }
  }
</script>

<style scoped>

.view-box{
  width: 100%;
  height: 0.9rem;
  background-color: #44bf91;
}
li{
  float: left;
  text-align: center;
  line-height: 0.9rem;
  color: #f1f1f1;
  font-weight: normal;
}
.head-l{
  width: 20%;
}
.head-c{
  width: 60%;
}
.head-r{
  width: 20%;
}
.test-head{
  width: 7.5rem;
  height: 6.5rem;
  background-color: #fff;
  position: fixed;
  text-align: center;
  font-size: 0.35rem;
}
.test-head p{
  display: block;
  padding: 0.3rem 0.8rem;
  font-size: 0.24rem;
  text-align: left;
}
.test-head div{
  margin-top: 1rem;
}
.test-head span{
  font-size: 0.2rem;
  color: #c4c4c4;
  position: relative;
  margin-top: 0.5rem;
}
.test-head span::after{
  position: absolute;
  content: "";
  width: 1.34rem;
  height: 0.02rem;
  background-color: #c4c4c4;
  top: 5px;
  left: 65px;
}
.test-head span::before{
  position: absolute;
  content: "";
  width: 1.34rem;
  height: 0.02rem;
  background-color: #c4c4c4;
  top: 5px;
  right: 65px;
}
.test-bottom{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 7.5rem;
  height: 5.8rem;
  background-color: #fff;
  font-size: 0.3rem;
  text-align: left;
}
.test-bottom h1{
  margin-top: 0.2rem;
  margin-left: 0.2rem;
}
.box-card{
  float: left;
  margin-left: 0.5rem;
  margin-bottom: 0.2rem;
  margin-top: 0.5rem;
  text-align: center;
}
.box-card .card{
  width:2.98rem;
  height: 1.7rem; 
}
.box-card .card img{
  width: 2.98rem;
  height: 1.32rem;
  float: left;
}
</style>